package com.zrrd._01_servlet.servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * @author WanJl
 * @version 1.0
 * @title ServletDemo01
 * @description
 * @create 2024/1/12 15:18
 */
@WebServlet("/demo01")  //web注解
public class ServletDemo01 implements Servlet {
    @Override
    public void init(ServletConfig config) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        System.out.println("Servlet Hello World WanJL");
        System.out.println("运行完就休息.....");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
